package com.imooc.hystrix.service;

import com.imooc.hystrix.hystrix.Fallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "eureka-client",fallback = Fallback.class)
public interface MyService {

    @GetMapping("error")
    public String error();

    @GetMapping("retry")
    String timeOut(@RequestParam("time")Integer time);
}
